/**
 * meiguang8.com
 * Copyright (C) 2016-2019 All Rights Reserved.
 */
package com.yuanchuang.yp.mall.web.admin.user.service;

import com.yuanchuang.yp.framework.common.exception.BaseException;
import com.yuanchuang.yp.mall.web.admin.user.model.LoginModel;
import com.yuanchuang.yp.mall.web.admin.user.model.LoginRequest;
import com.yuanchuang.yp.mall.web.admin.user.model.MenuModel;
import com.yuanchuang.yp.mall.web.admin.user.model.TreeMenuModel;

import java.util.List;

/**
 * class_name: AuthService
 * package: com.yuanchuang.yp.mall.web.admin.service
 * describe: TODO
 * @author: yuanyuan.zhu
 * creat_date: 2019/7/11
 * creat_time: 15:26
 **/
public interface AuthService {
    /**
     * 登陆
     * @param loginRequest
     * @return
     */
     LoginModel login(LoginRequest loginRequest) throws BaseException;

    /**
     * 获取用户所属的菜单
     * @param authUserId
     * @return
     */
    List<MenuModel> listMenus(Long authUserId);

    /**
     * 获取用户所属的菜单 tree
     * @param authUserId
     * @return
     */
    List<TreeMenuModel> listMenuTree(Long authUserId);
}
